/**
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '~/styles/variables';

.promptDataScreen {
  background-color: rgba(21, 21, 21, 0.95);
  color: $light;
  display: flex;
  height: 100%;
  left: 0;
  opacity: 0;
  overflow: auto;
  padding-top: 15.3rem;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: all 0.15s ease-in-out;
  width: 100vw;
  z-index: 999;

  &.fadeIn {
    opacity: 1;
    pointer-events: all;
    transition-delay: 0.2s;
  }

  .content {
    padding-bottom: 15.3rem;
  }
  .intro {
    margin-bottom: 2.8rem;

    @media screen and (min-width: $medium) {
      margin-bottom: 5.7rem;
      width: 55%;
    }
  }

  .close {
    box-sizing: content-box;
    color: white;
    height: 2.4rem;
    padding: 2.8rem;
    position: absolute;
    right: 0;
    top: 0;
    width: 2.4rem;
  }

  h1 {
    font-family: $font_heading;
    font-feature-settings: 'pcap' on;
    font-size: 4.8rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.055em;
    margin-bottom: 3.2rem;

    @media screen and (min-width: $medium) {
      font-size: 7.2rem;
    }
  }

  a {
    color: currentColor;
  }

  .item {
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;

    @media screen and (min-width: $tablet-l) {
      flex-direction: row;
    }
  }

  .rowTitle {
    flex: 0 0 10%;
    font-family: $font_mono;
    padding: 2.4rem 2.4rem 2.4rem 0;
  }

  .table {
    border-left: 1px solid $mid_grey;
    border-right: 1px solid $mid_grey;
    border-top: 1px solid $mid_grey;
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .tableRow {
    display: flex;
    flex-direction: column;

    @media screen and (min-width: $medium) {
      flex-direction: row;
    }

    .title {
      color: $semidark_grey;
      display: block;
      font-family: $font_mono;
      margin-bottom: 1rem;
    }

    .copy {
      font-size: $base_font_size;
      line-height: 2.1rem;
    }
  }

  .tableRowBorder {
    border-top: 1px solid $mid_grey;
  }

  .item:first-of-type {
    .table {
      border-top-left-radius: 0.8rem;
      border-top-right-radius: 0.8rem;
    }
  }

  @media screen and (max-width: $tablet-l - 1px) {
    .item {
      .table {
        border-bottom: 1px solid $mid_grey;
        border-bottom-left-radius: 0.8rem;
        border-bottom-right-radius: 0.8rem;
      }
    }
  }

  @media screen and (min-width: $tablet-l) {
    .item:last-of-type {
      .table {
        border-bottom: 1px solid $mid_grey;
        border-bottom-left-radius: 0.8rem;
        border-bottom-right-radius: 0.8rem;
      }
    }
  }

  .tableCol {
    flex: 0 1 100%;
    padding: 2.4rem;
    width: 100%;

    & + .tableCol {
      border-left: 1px solid $mid_grey;
    }

    &.cards {
      background-color: $cards;
      background-color: rgba(31, 31, 31, 0.95);
    }

    &.italic {
      color: $semidark_grey;
      font-style: italic;
    }
    &.bold {
      font-weight: 700;
    }
  }

  .colTitle {
    color: $semidark_grey;
    display: block;
    font-family: $font_mono;
    font-size: 1rem;
    font-style: normal;
    line-height: 1.5rem;
    margin-bottom: 0.8rem;
  }
}
